package cn.wit.contest.service;

import cn.wit.contest.condition.ContestCondition;
import cn.wit.utils.pojo.Contest;
import cn.wit.utils.response.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public interface ContestService {
    Result insert(Contest contest);//新增一条竞赛记录
    Result deleteById(int id);//根据ID刹车农户
    Result updateById(Contest contest);//根据ID更新
    Result selectById(Integer id);
    Result queryContest(IPage<Contest> page, ContestCondition condition);

    Result excelImport(MultipartFile file);//excel导入功能
}
